package main

import (
"fmt"
	"golang.org/x/net/websocket"

	//"github.com/gorilla/websocket"
)

func wwwGolangLtd(ws *websocket.Conn){
	fmt.Println(ws,"早点欢迎你")

	//data:=ws.Re
	//消息序列化

}

func websocketHandler(ws *websocket.Conn){
	fmt.Println(ws,"早点websocket")

	data:=ws.Request().URL.Query().Get("data")
	fmt.Println("data:",data)

	var netData *NetData=new(NetData)
	netData.Connection=ws
	netData.StrMd5=""
	//接收消息
	netData.Receive()

}
